@extends('admin_system/public/layout')
@section('content')
    <div class="col-xs-12">
        <p class="float-left"><strong>当前位置：</strong>广告管理>>添加广告</p>

        {{--返回按钮--}}
        <button type="button" class="btn btn-default float-right back" aria-label="Left Align">
            <span class="glyphicon glyphicon-arrow-left back" aria-hidden="true"></span>
            <span>返回</span>
        </button>
    </div>

    <div class="col-xs-12"></div>

    <div class="content-box col-xs-12 mt20 pb20 pt20">
        <form class="col-xs-4" action="{{asset('/admin_system/menu/menu_edit')}}" method="post" enctype="multipart/form-data">

            <input type="hidden" name="menu_id" value="{{$menuInfo->menu_id}}">
            {{ csrf_field() }}
            <div class="form-group">
                <label>菜单名称</label>
                <input name="menu_name" class="form-control" value="{{$menuInfo->menu_name}}" required>
            </div>

            <div class="form-group">
                <label>菜单链接</label>
                <input name="link_url" class="form-control" value="{{$menuInfo->link_url}}" placeholder="相对于根域名">
            </div>

            <div class="form-group">
                <label>菜单名称</label>
                <select name="parent_id" class="form-control">
                    <option value="0">顶级菜单</option>
                    @foreach($mainMenu as $menu)
                        <option value="{{$menu->menu_id}}">{{$menu->menu_name}}</option>
                    @endforeach
                </select>
            </div>

            <div class="form-group">
                <label>排序</label>
                <input class="form-control" name="sort" type="number" value="{{$menuInfo->sort}}" required>
            </div>

            <div class="form-group">
                <label>是否显示</label>
                <select name="is_delete" class="form-control">
                    <option value="0">显示</option>
                    <option value="1">隐藏</option>
                </select>
            </div>


            <button type="submit" class="btn btn-primary">提交</button>
        </form>
    </div>


@endsection
